﻿using BCVP.Net8.Model.Models;
using BCVP.Net8.Repository.Base;
using BCVP.Net8.Repository.UnitOfWorks;

using Newtonsoft.Json;

using SqlSugar;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace BCVP.Net8.Repository
{
    /// <summary>
    /// 仓储接口实现
    /// </summary>
    public class UserRepository : BaseRepository<SysUserInfo>, IUserRepository
    {
        //public async Task<List<User>> QueryAll()
        //{
        //    await Task.CompletedTask;
        //    var data = "[{\"Id\":18,\"Name\":\"laoxiao\"}]";
        //    return JsonConvert.DeserializeObject<List<User>>(data) ?? new List<User>();
        //}
        //public UserRepository(ISqlSugarClient sqlSugarClient) : base(sqlSugarClient)
        //{
        //}
        public UserRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage)
        {
        }
    }
}
